﻿/*
 * Returns the maximum small integer value supported by SQL Server.
 */
create function [SmallInt].[MaxValue] ()
returns smallint as
begin

  return 32767 ;

end